﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.Data.Linq.Mapping;

namespace TianYa.Data
{
    [Table]
    public class BrowserRecorde : BaseTable
    {
        private int id;

        [Column(IsPrimaryKey = true, IsDbGenerated = true, DbType = "INT NOT NULL Identity", CanBeNull = false, AutoSync = AutoSync.OnInsert)]
        public int ID
        {
            get
            {
                return id;
            }
            set
            {
                if (id != value)
                {
                    NotifyPropertyChanging("ID");
                    id = value;
                    NotifyPropertyChanged("ID");
                }
            }
        }


        private string name;
        /// <summary>
        /// 标题
        /// </summary>
        [Column]
        public string Name
        {
            get
            {
                return name;
            }
            set
            {
                if (name != value)
                {
                    NotifyPropertyChanging("Name");
                    name = value;
                    NotifyPropertyChanged("Name");
                }
            }
        }

        private string postId;
        [Column]
        public string PostId
        {
            get
            {
                return postId;
            }
            set
            {
                if (postId != value)
                {
                    NotifyPropertyChanging("PostId");
                    postId = value;
                    NotifyPropertyChanged("PostId");
                }
            }
        }


        private string plateId;
        [Column]
        public string PlateId
        {
            get
            {
                return plateId;
            }
            set
            {
                if (plateId != value)
                {
                    NotifyPropertyChanging("PlateId");
                    plateId = value;
                    NotifyPropertyChanged("PlateId");
                }
            }
        }

        private int pageNum;
        [Column]
        public int PageNum
        {
            get
            {
                return pageNum;
            }
            set
            {
                if (pageNum != value)
                {
                    NotifyPropertyChanging("PageNum");
                    pageNum = value;
                    NotifyPropertyChanged("PageNum");
                }
            }
        }


        private long timeStamp ;
        [Column]
        public long TimeStamp
        {
            get
            {
                return timeStamp;
            }
            set
            {
                if (timeStamp != value)
                {
                    NotifyPropertyChanging("TimeStamp");
                    timeStamp = value;
                    NotifyPropertyChanged("TimeStamp");
                }
            }
        }

    }
}
